<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			function Dog(name,color){
				this.name=name;
				this.color=color;
				this.say=function(){
					console.log("我是",this.name,",一条",this.color,"色的狗")
				}
			}
			console.log("Dog:",Dog);
			var dog=new Dog("小黑","白");
			console.log("dog:",dog);
			
			dog.say();
			
		</script>
	</body>
</html>
